/* Copyright 2010 Gilberto Pacheco Gallegos
 * Licensed under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License. You may obtain a copy of the License at
 *     http://www.apache.org/licenses/LICENSE-2.0
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations
 * under the License. */
package org.Carol.client;

import java.io.Serializable;
import java.util.List;

/** Parte del contenido de una tabla. */
public class Pagina implements Serializable {
  private static final long serialVersionUID = 1L;
  /** Número total de registros en la tabla. */
  private int total;
  /** Número del primer registro de la tabla que se incluye en
   * esta página. */
  private int inicio;
  /** Objetos de la página. */
  private List<DtoConocido> objetos;
  public Pagina() {
  }
  public Pagina(int total, int inicio,
      List<DtoConocido> objetos) {
    this.total = total;
    this.inicio = inicio;
    this.objetos = objetos;
  }
  public int getTotal() {
    return total;
  }
  public int getInicio() {
    return inicio;
  }
  public List<DtoConocido> getObjetos() {
    return objetos;
  }
}
